#include <stdio.h>
#include <stdlib.h>

typedef struct node
{
    int data;
    struct node* next;
}LNode;

void Listpushhead(LNode**head,int x)
{
    LNode *newnode;
    newnode=(LNode*)malloc(sizeof(LNode));
    newnode->data=x;
    newnode->next=*head;
    *head=newnode;
}

void Listfind(LNode*head)
{
    LNode* cur=head;
    int s=0;
    while(cur!=NULL)
    {
        if((cur->data)%2==0)
        {
            s++;
        }
        cur=cur->next;
    }
    printf("%d\n",s);
}
int main()
{
    int n,x;
    while(scanf("%d",&n)!=EOF)
    {
        LNode* plist;
        plist=NULL;
        for(int i=0;i<n;i++)
        {
            scanf("%d",&x);
            Listpushhead(&plist,x);
        }
        Listfind(plist);
    }
    return 0;
}
